package cate.game.pvp.guildwar.data.rank;

import cate.game.role.RoleSnapshot;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("公会战-玩家功勋")
public class GWRoleRank {

	public static final String COLLECTION = "guild-war-role-rank";

	@NoteField(value = "该条记录所归属的主角de快照")
	public RoleSnapshot owner;

	@NoteField(value = "记录上榜时间")
	public long recordTime;

	@NoteField(value = "功勋值")
	public long value;

	public GWRoleRank() {
	}

	public GWRoleRank(RoleSnapshot owner, long value) {
		this.owner = owner;
		this.value = value;
		this.recordTime = System.currentTimeMillis();
	}

	public void read(RoleSnapshot owner, long value){
		this.owner = owner;
		this.value = value;
		this.recordTime = System.currentTimeMillis();
	}
}
